package com.Ajava1704.for并发包下的类.threadLocal;

import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.HashMap;
import java.util.Map;

/**
 * 作者: LCG
 * 日期: 2020/6/23 23:45
 * 描述:
 */

@RestController
public class TestThreadWeb {

    TestUtils testUtils=new TestUtils();

    @RequestMapping("t1/{id}")
    public void test001(@PathVariable("id") String id){

        testUtils.getUser().setUserName("8888888888");
        System.out.println(id+"------>"+testUtils.getUser().getUserName());

    }

    @RequestMapping("t2/{id}")
    public void test002(@PathVariable("id") String id){

        System.out.println(id+"------>"+testUtils.getUser().getUserName());

    }

}
